package com.isoft.airportsystem.mapper.Flight;

import com.isoft.airportsystem.entity.flight.BoardingGateInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BoardingGateMapper {
    // 根据航班号+日期查询
    BoardingGateInfo selectByFlightNoAndDate(
            @Param("flightNumber") String flightNumber,
            @Param("flightDate") String flightDate
    );
    List<BoardingGateInfo> selectAll();
    // 返回列表而非单条记录
    List<BoardingGateInfo> selectByFlightId(@Param("flightId") String flightId);
    int insertBoardingGate(BoardingGateInfo info);
    int updateBoardingGate(BoardingGateInfo info);
    int deleteBoardingGate(@Param("flightId") String flightId);
    List<BoardingGateInfo> selectByBoardingGate(@Param("boardingGate") String boardingGate);
    List<BoardingGateInfo> selectByDate(@Param("flightDate") String flightDate);
}
